<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
       xmlns:p="http://primefaces.org/ui" >

    <ui:composition template="/menu.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateEventosTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <p:growl/>
            <h:form>
                <p:outputLabel value="Los campos con * son Obligatorios"/>
                <p:separator/>
                <h:panelGrid columns="6">
                    <p:outputLabel value="#{bundle.CreateEventosLabel_descripcion}" for="descripcion" />
                    <p:inputText id="descripcion" value="#{eventosController.selected.descripcion}" title="#{bundle.CreateEventosTitle_descripcion}" required="true" requiredMessage="#{bundle.CreateEventosRequiredMessage_descripcion}"/>
                    <h:outputLabel value="#{bundle.CreateEventosLabel_fecha}" for="fecha" />
                     <p:calendar id="fecha" value="#{eventosController.selected.fecha}" title="#{bundle.CreateEventosTitle_fecha}" locale="de" navigator="true" pattern="MM-dd-yyyy" required="true" requiredMessage="#{bundle.CreateEventosRequiredMessage_fecha}">                
                    </p:calendar> 
                    <p:outputLabel value="#{bundle.CreateEventosLabel_numerodoc}" for="numerodoc" />
                    <p:selectOneMenu id="numerodoc" value="#{eventosController.selected.numerodoc}"  >
                        <f:selectItems value="#{usuariosController.itemsAvailableSelectOne}"/>
                    </p:selectOneMenu>
                </h:panelGrid>
                <p:spacer/>
                <h:panelGrid columns="2">
                    <h:commandButton action="#{eventosController.create}" value="#{bundle.CreateEventosSaveLink}" />
                    <h:commandButton action="#{eventosController.prepareList}" value="#{bundle.CreateEventosShowAllLink}" immediate="true"/>
                </h:panelGrid>
                
            </h:form>
        </ui:define>
    </ui:composition>

</html>
